import { create } from 'zustand';

interface StoreWorkbench {
  userDataList: any[];
  projectData: any[];
  currentMenuItem: any;
  updateAnyValue: (newData: any) => void;
}

export const useStoreWorkbench = create<StoreWorkbench>((set) => ({
  userDataList: [],
  projectData: [],
  // currentMenuItem: {},
  currentMenuItem: {
    label: 'require-未分类会话',
    key: '1',
  },
  updateAnyValue: (newData) => {
    set((state) => ({
      ...state,
      ...newData,
    }));
  },
}));
